#include "signal.hpp"

#include <iioservice.hpp>
#include <boost/bind.hpp>

Signal::Signal(IIOService& ioService)
	: m_signals(ioService.getBoostIoService())
{
}

Signal::~Signal()
{
}

void Signal::add(int signalNumber)
{
	m_signals.add(signalNumber);
}

void Signal::asyncWait(ISignalHandler& handler)
{
	m_signals.async_wait(boost::bind(&ISignalHandler::handleSignal, &handler));
}
